
using BMSS.Services.System;

namespace BMSS.WinForm
{
    public partial class FrmLogin : Form
    {
        private readonly ISysUserService _sysUserService;

        public FrmLogin(ISysUserService sysUserService)
        {
            _sysUserService = sysUserService;
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var user = _sysUserService.GetUserInfo(1).Result;
            this.label1.Text = user.UserName;
        }
    }
}
